home *** CD-ROM | disk | FTP | other *** search
- ====== NOSview [137]
- dialer
- ======
-
- There are two different syntaxes for the 'dialer' command,
- depending on the version of NOS:
-
- _________________________________________________________________
- dialer <interface> <seconds> <host> <dialer_file>
- OR
- dialer <interface> [<dialer_file> [<seconds> [<pings> [<host>]]]]
- _________________________________________________________________
- Set up an autodialer session for the interface. Whenever the
- interface is idle for the interval in <seconds>, the autodialer
- will ping the <hostid>. If there is no answer after <pings>
- attempts, the autodialer will execute the special commands
- contained in the <dialer_file>.
-
- If the interval in <seconds> is zero, a previous dialer command
- process will be removed. If the number of <pings> is zero, the
- <dialer_file> will be executed without pinging the <host>.
-
- The file may have any valid name, and must be located in the NOS
- root directory. The dialer commands in the file are the
- following:
-
- >> Examples: dialer sl0 20 ns9tel ns9tel.dia
- dialer sl0 ns9tel.dia 30 10 ns9tel
-
-
- ====================
- DIALER FILE COMMANDS
- ====================
-
- -----------------------------------------------------------------
- control down|up
- -----------------------------------------------------------------
- Control the 'asy' interface. The 'down' option drops DTR and
- RTS. The 'up' option asserts DTR and RTS.
-
- >> Example: control down
-
-
- -----------------------------------------------------------------
- send "<string>"
- -----------------------------------------------------------------
- This dialer command will write the specified string to the
- interface. The string quote marks are required, and the string
- may not contain embedded control characters. However, the
- standard C string escape sequences are recognized (but \0 should
- not be used).
-
-
- >> Example: send "atdt555-1212"
-
-
- -----------------------------------------------------------------
- speed [ 9600 | 4800 | 2400 | 1200 | 300 ]
- -----------------------------------------------------------------
- This command sets the speed of the interface to one of the
- available speeds. If the speed is missing, the speed will be
- displayed in the dialer session window.
-
- >> Example: speed 1200
-
-
- -----------------------------------------------------------------
- wait <milliseconds> [ "test_string" ] [<speed>]
- -----------------------------------------------------------------
- If only the time is specified, the dialer pauses for the desired
- number of milliseconds. Otherwise, the dialer reads until the
- <test_ string> is detected on the interface.
-
- If the string is not detected within the desired time, the
- autodialer will reset. The string quote marks are required, and
- the string may not contain embedded control characters. However,
- the standard C string escape sequences are recognized (but \0
- should not be used).
-
- If the <speed> parameter is specified, the dialer will continue
- to read characters until a non-digit is detected. The string
- read is converted to an integer, and used to set the interface
- speed. If the trailing non-digit is not detected within the
- desired time, or the integer value is not a valid speed, the
- autodialer will reset.
-
- >> Example: wait 45000 "CONNECT" 1200
-